<?php

// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));

// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
		realpath(APPLICATION_PATH . '/library'),
		dirname(__FILE__) . '/application/modules/admin/models',
		get_include_path(),
)));

//------------KHAI BAO DUONG DAN THUC DEN CAC THU MUC --------------

//Duong dan den thu muc ung dung
define('APPLICATION_URL','/ebook');
define('SRCIPTS_URL', APPLICATION_URL . '/public/scripts');
//Duong dan den thu muc /public
define('PUBLIC_PATH', realpath(dirname(__FILE__) . '/public'));
define('PUBLIC_URL', APPLICATION_URL.'/public');
define('TEMP_PATH', PUBLIC_PATH . '/tmp');
define('FILES_PATH', PUBLIC_PATH . '/files');
define('SCRIPTS_PATH',PUBLIC_PATH . '/scripts');

define('CAPTCHA_PATH',PUBLIC_PATH . '/captcha');
define('BLOCK_PATH',APPLICATION_PATH . '/blocks');
define('CONFIG_PATH',APPLICATION_PATH . '/configs');
define('CACHE_PATH',APPLICATION_PATH . '/caches');


//Duong dan den thu muc /templates
define('TEMPLATE_PATH', PUBLIC_PATH . '/templates');

//------------KHAI BAO DUONG DAN URL DEN CAC THU MUC --------------


//Duong dan den thu muc /templates
define('TEMPLATE_URL', '/public/templates');
define('CAPTCHA_URL', APPLICATION_URL . '/public/captcha');

define('FILES_URL', APPLICATION_URL . '/public/files');
